<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 15:59
 */

namespace  vendor\user;
class user
{
    private static $usercount;
    //构造函数
    public  function  __construct()
    {
        self::$usercount++;
        echo '创建对象';
    }
    //注册
    public  function  zhuce(){
        echo '注册';
    }
    //登录
    public  function  denglu(){
        echo '登录';
    }
    //修改密码
    public  function updatepwd(){
        echo '修改密码';
    }
    //析构函数
    public  function  __destruct()
    {
        echo '删除对象';
    }
    public function mylevel(){
        echo '我是普通用户';
    }
    //获取在线人数
    public static function getcount(){
        return self::$usercount;
    }
}